package com.zmj.sy.mom.srv.aps.controller;

import com.zmj.sy.mom.srv.aps.bean.vo.lantek.LantekReceiveNestReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.cuttingProgram.CuttingProgramResVo;
import com.zmj.sy.mom.srv.aps.service.CuttingProgramService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@Api(tags = "切割程序获取")
@RestController
@RequestMapping("/cuttingProgram")
public class CuttingProgramController {

    private final CuttingProgramService cuttingProgramService;

    @ApiOperation("获取切割程序")
    @GetMapping("/getProgram")
    public CuttingProgramResVo getProgram(String plateCode) {
        return cuttingProgramService.getProgram(plateCode);
    }

    @ApiOperation("获取切割信息")
    @GetMapping("/getCutting")
    public LantekReceiveNestReqVo getCutting(String plateCode) {
        return cuttingProgramService.getCutting(plateCode);
    }

}
